package com.mine.mybatis.test.store;

import com.mine.mybatis.test.factory.UsbKingFactory;
import com.mine.mybatis.test.inter.UsbSell;


/*
* 淘宝卖优盘 实现卖优盘接口
*
*
*
* */
public class WeiShang implements UsbSell {

    //代理金士顿
    private UsbKingFactory kingFactory = new UsbKingFactory();


    @Override
    public float sell(int amount) {

        float price = kingFactory.sell(amount); //厂家给的价格

        price = price +1; //加价1
        return price;
    }
}
